package com.example.threadSimple;


import java.util.Optional;

import lombok.Data;

/**
 * @Author: Ah Nan
 * @Description: 测试 Optional 类的链式方法
 * @Date: 16:24 2020/6/28
 */
@Data
public class Address {
    private PaymentModel paymentModel;

    public Optional<PaymentModel> getCountry() {
        return Optional.ofNullable(paymentModel);
    }
}
